Ext.define("wmf.store.blacklist.tree", {
	extend: 'Ext.data.TreeStore',
	requires: [
	],
	
	proxy : {  
        type : 'ajax',  
        url : 'resource/loadAuthResourceTree.do'  
    },  
    rootVisible: true,
    listeners : {  
        beforeload : function(store, operation) {  
            var params = { 
                blacklistId : wmf.blacklistGrid.params.blacklistId 
            };  
            Ext.apply(store.proxy.extraParams, params);
        }  
    },
	
    fields:[
    	{ name: 'checked', type: 'bool' },
    	{ name: 'children', type: 'string' },
    	{ name: 'childrenIds', type: 'string' },
    	{ name: 'expanded', type: 'string' },
    	{ name: 'iconCls', type: 'string' },
    	{ name: 'leaf', type: 'string' },
    	{ name: 'resourceId', type: 'string' },
    	{ name: 'text', type: 'string' },
    	{ name: 'parentResourceId', type: 'string' }
    ],
    
	storeId: 'blacklist.tree'
});